import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		flightData:[],    // 普通的航班列表
		flightRecData:[],    // 推荐航班列表
		isLogin:'',
		userInfo:{
			JSESSIONID:'',
			telephone:'',
			lastName:'',
			firstName:'',
			userId:'',
			username:'',
			id:''
		},
		planeOrder:[],         // 机票订单
		hostId:'http://192.168.1.107:8555/ams_war_exploded/userImage/'
		// hostId:'http://172.20.10.5:8555/ams_war_exploded/userImage/'
	},
	mutations: {
		update(state,[key,value]){
			state[key]=value;
		},
	}
})

export default store